<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>退订关键字管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {

		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
			return false;
		}
	</script>
</head>
<body>
<ul class="nav nav-tabs">
	<li class="active"><a href="${ctx}/sms/unsubKeyword/">退订关键字列表</a></li>
	<shiro:hasPermission name="sms:unsubKeyword:edit"><li><a href="${ctx}/sms/unsubKeyword/form">退订关键字添加</a></li></shiro:hasPermission>
</ul>
<form:form id="searchForm" modelAttribute="unsubKeyword" action="${ctx}/sms/unsubKeyword/" method="post" class="breadcrumb form-search">
	<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
	<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
	<ul class="ul-form">
		<li><label>关键字：</label>
			<form:input path="keyword" htmlEscape="false" maxlength="100" class="input-medium"/>
		</li>
		<li><label>级别：</label>
			<form:select path="level" class="input-medium">
				<form:option value="" label=""/>
				<form:options items="${fns:getDictList('level')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
			</form:select>
		</li>
		<li><label>备注：</label>
			<form:input path="remark" htmlEscape="false" maxlength="255" class="input-medium"/>
		</li>
		<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
		<li class="clearfix"></li>
	</ul>
</form:form>
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
	<thead>
	<tr>
		<th>id</th>
		<th>关键字</th>
		<th>操作人</th>
		<th>级别</th>
		<th>添加时间</th>
		<th>匹配类型</th>
		<th>备注</th>
		<shiro:hasPermission name="sms:unsubKeyword:edit"><th>操作</th></shiro:hasPermission>
	</tr>
	</thead>
	<tbody>
	<c:forEach items="${page.list}" var="unsubKeyword">
		<tr>
			<td><a href="${ctx}/sms/unsubKeyword/form?id=${unsubKeyword.id}">
					${unsubKeyword.id}
			</a></td>
			<td>
					${unsubKeyword.keyword}
			</td>
			<td>
					${unsubKeyword.operater}
			</td>
			<td>
					${fns:getDictLabel(unsubKeyword.level, 'level', '')}
			</td>
			<td>
				<fmt:formatDate value="${unsubKeyword.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
			</td>
			<td>
					${fns:getDictLabel(unsubKeyword.matchType, 'matchType', '')}
			</td>
			<td>
					${unsubKeyword.remark}
			</td>
			<shiro:hasPermission name="sms:unsubKeyword:edit"><td>
				<a href="${ctx}/sms/unsubKeyword/form?id=${unsubKeyword.id}">修改</a>
				<a href="${ctx}/sms/unsubKeyword/delete?id=${unsubKeyword.id}" onclick="return confirmx('确认要删除该退订关键字吗？', this.href)">删除</a>
			</td></shiro:hasPermission>
		</tr>
	</c:forEach>
	</tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>